package com.guigu.controller.lq.service.impl;

import com.guigu.controller.lq.mapper.LqGyfaMapper;
import com.guigu.controller.lq.pojo.LqGyfa;
import com.guigu.controller.lq.pojo.LqMake;
import com.guigu.controller.lq.service.LqGyfaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LqGyfaServiceimpl implements LqGyfaService {
    @Autowired
    LqGyfaMapper lqGyfaMapper;
    public int addgy(LqGyfa lqGyfa) {

        return lqGyfaMapper.insert(lqGyfa);
    }

    public int upgy(LqGyfa lqGyfa) {
        return lqGyfaMapper.updateByPrimaryKey(lqGyfa);
    }

    public LqGyfa selgy(Integer vipid) {
        return lqGyfaMapper.selectByPrimaryKey(vipid);
    }
}
